package com.erp.erp_entitys.CustomerContact;

import com.erp.utils.DateUtils;

public class CustomerContactVoEntity {
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 名称
     */
    private String name;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 职务
     */
    private String post;

    /**
     * 电话
     */
    private String tel;

    /**
     * 手机
     */
    private String phone;

    /**
     * 微信
     */
    private String wx;

    /**
     * 快递地址
     */
    private String expressAddress;

    /**
     * 生日
     */
    private String birthday;

    /**
     * 备注
     */
    private String remark;

    /**
     * 业务员
     */
    private String salesman;

    /**
     * 创建者
     */
    private String creater;

    /**
     * 创建时间
     */
    private String createtime;

    /**
     * 所属公司
     */
    private String company;
    private String companyname;

    public String getCompanyname() {
        return companyname;
    }

    public void setCompanyname(String companyname) {
        this.companyname = companyname;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getWx() {
        return wx;
    }

    public void setWx(String wx) {
        this.wx = wx;
    }

    public String getExpressAddress() {
        return expressAddress;
    }

    public void setExpressAddress(String expressAddress) {
        this.expressAddress = expressAddress;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getSalesman() {
        return salesman;
    }

    public void setSalesman(String salesman) {
        this.salesman = salesman;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }
    public void convet(CustomerContactEntity cce){
        this.setBirthday(DateUtils.format(cce.getBirthday()));
        this.setCompany(cce.getCompany());
        this.setCreater(cce.getCreater());
        this.setEmail(cce.getEmail());
        this.setCreatetime(DateUtils.format(cce.getCreatetime()));
        this.setExpressAddress(cce.getExpressAddress());
        this.setId(cce.getId());
        this.setName(cce.getName());
        this.setPhone(cce.getPhone());
        this.setPost(cce.getPost());
        this.setRemark(cce.getRemark());
        this.setSalesman(cce.getSalesman());
        this.setWx(cce.getWx());
        this.setTel(cce.getTel());
    }
}
